package org.xdoclet.plugin.hibernate.naturalid;

import java.util.Date;

/**
 * Test properties tag
 *
 * @author Espen Amble Kolstad
 * @hibernate.class table="naturalid_table"
 * @hibernate.natural-id mutable="true"
 */
public class NaturalId {
    private Boolean available;
    private Date changedOn;
    private Date createdOn;
    private Long id;
    private String resource;

    public void setAvailable(Boolean available) {
        this.available = available;
    }

    /**
     * @hibernate.property properties-name="natural-id"
     */
    public Boolean getAvailable() {
        return available;
    }

    public void setChangedOn(Date changedOn) {
        this.changedOn = changedOn;
    }

    /**
     * @hibernate.property
     */
    public Date getChangedOn() {
        return changedOn;
    }

    public void setCreatedOn(Date createdOn) {
        this.createdOn = createdOn;
    }

    /**
     * @hibernate.property
     */
    public Date getCreatedOn() {
        return createdOn;
    }

    public void setId(Long id) {
        this.id = id;
    }

    /**
     * @hibernate.id type="glarch" generator-class="glem"
     */
    public Long getId() {
        return id;
    }

   public void setResource(String resource) {
      this.resource = resource;
   }

   /**
     * @hibernate.property properties-name="natural-id"
     */
    public String getResource() {
        return resource;
    }
}